import request from "@/utils/http";

// 获取详情
export const getCheckoutAPI = () => {
  return request({
    url: "/member/order/pre",
  });
};

/**
 *
 * @param {*} data  传一个对象
 * @returns
 */
export const createOrderAPI = (data) => {
  return request({
    url: "/member/order",
    method: "POST",
    data,
  });
};
